package cn.mw.OpenFeign;

import cn.mw.OpenFeign.fallbackfactory.UserFallbackFactory;
import cn.mw.domain.User;
import cn.mw.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Component
@FeignClient(value = "user-server" ,fallbackFactory = UserFallbackFactory.class)
public interface UserFeign {
    @GetMapping("/user/getOne/{id}")
    User getOne(@PathVariable("id") Long id);
}
